import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import ViewUI from 'view-design'
import 'view-design/dist/styles/iview.css'
import config from '@/config'
import i18n from '@/i18n'
import './assets/less/index.less'

/**
 * @description 生产环境关掉提示
 */
Vue.config.productionTip = false
/**
 * @description 使用iView框架,https://www.iviewui.com/docs/guide/start
 */
ViewUI.Message.config({
  duration: 3
})
Vue.use(ViewUI, {
  i18n: (key, value) => i18n.t(key, value)
})
/**
 * @description 全局注册应用配置
 */
Vue.prototype.$config = config
/* eslint-disable no-new */
new Vue({
  router,
  i18n,
  store,
  render: h => h(App)
}).$mount('#app')
